package com.xca.znb.presenter;

import com.xca.znb.entity.Trends;
import com.xca.znb.entity.User;
import com.xca.znb.model.imodel.IMyFriends;

import java.util.List;

public class MyFriendsPresenter {
    private IMyFriends iMyFriends ;
    public MyFriendsPresenter(IMyFriends iMyFriends){
        this.iMyFriends = iMyFriends ;
    }

    public User getUserByPhone(String phone) {
        return iMyFriends.getUserByPhone(phone);
    }

    public void deleteTrendsById(int id) {
        iMyFriends.deleteTrendsById(id);
    }

    public List<Trends> getTrendsByUser(String user) {
        return iMyFriends.getTrendsByUser(user);
    }
}
